package com.ruoyi.zhike.system.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.ruoyi.zhike.db.mapper.AppEncryptMapper;
import com.ruoyi.zhike.db.domain.AppEncrypt;
import com.ruoyi.zhike.system.service.IAppEncryptService;

import javax.annotation.Resource;

/**
 * app加密配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-17
 */
@Service
public class AppEncryptServiceImpl implements IAppEncryptService 
{
    @Resource
    private AppEncryptMapper appEncryptMapper;

    /**
     * 查询app加密配置
     * 
     * @param id app加密配置主键
     * @return app加密配置
     */
    @Override
    public AppEncrypt selectAppEncryptById(String id)
    {
        return appEncryptMapper.selectAppEncryptById(id);
    }

    /**
     * 查询app加密配置列表
     * 
     * @param appEncrypt app加密配置
     * @return app加密配置
     */
    @Override
    public List<AppEncrypt> selectAppEncryptList(AppEncrypt appEncrypt)
    {
        return appEncryptMapper.selectAppEncryptList(appEncrypt);
    }

    /**
     * 查询app加密配置列表
     *
     * @param appEncrypt app加密配置
     * @return app加密配置
     */
    @Override
    public List<Map<String, Object>> selectAppEncryptListMap(AppEncrypt appEncrypt)
    {
        return appEncryptMapper.selectAppEncryptListMap(appEncrypt);
    }

    /**
     * 新增app加密配置
     * 
     * @param appEncrypt app加密配置
     * @return 结果
     */
    @Override
    public int insertAppEncrypt(AppEncrypt appEncrypt)
    {
        return appEncryptMapper.insertAppEncrypt(appEncrypt);
    }

    /**
     * 修改app加密配置
     * 
     * @param appEncrypt app加密配置
     * @return 结果
     */
    @Override
    public int updateAppEncrypt(AppEncrypt appEncrypt)
    {
        return appEncryptMapper.updateAppEncrypt(appEncrypt);
    }

    /**
     * 批量删除app加密配置
     * 
     * @param ids 需要删除的app加密配置主键
     * @return 结果
     */
    @Override
    public int deleteAppEncryptByIds(String[] ids)
    {
        return appEncryptMapper.deleteAppEncryptByIds(ids);
    }

    /**
     * 删除app加密配置信息
     * 
     * @param id app加密配置主键
     * @return 结果
     */
    @Override
    public int deleteAppEncryptById(String id)
    {
        return appEncryptMapper.deleteAppEncryptById(id);
    }
}
